﻿using System;
using System.Runtime.Serialization;

namespace Phatent.Model.Pages
{
    [DataContract]
    public class CaseModel:MBase
    {
        [DataMember]
        [Model(ConvertType=AttributeType.IgnoreUpdate)]
        public int ID { get; set; }
        [DataMember]
        [Model(ConvertType = AttributeType.IgnoreUpdate)]
        public Nullable<int> PID { get; set; }
        [DataMember]
        [Model]
        public string CaseName { get; set; }
        [DataMember]
        [Model]
        public int CaseType { get; set; }
        [DataMember]
        [Model]
        public int Pindex { get; set; }
        [DataMember]
        [Model]
        public string Description { get; set; }
        [DataMember]
        [Model]
        public string FriendUrl { get; set; }
        [DataMember]
        [Model]
        public string Banner { get; set; }
        [DataMember]
        [Model]
        public string EName { get; set; }
        [DataMember]
        [Model]
        public string EBanner { get; set; }

        #region Help
        [DataMember]
        public CaseCollection Items { get; set; }
        [DataMember]
        public int CurrentID { get; set; }
        [DataMember]
        public CaseModel ParentCase { get; set; }
        #endregion
    }

    [DataContract]
    public class CaseCollection : ModelCollectionBase<CaseModel> { }
}
